$(".breadcrumb li").on("click", function() {
	var form = "bbs";
	function get() {
		form = $(this).attr("id");
		$.ajax({
			url: "showEarliestFiveDataOrderByForm.do",
			data: {
				id: value,
				form: form,
				pageNo: 1,
				size: 10
			},
			type: "post",
			success: function(data) {
				var obj = data.results;
				var shtml = "";
				for(var i = 0; i < obj.length; i++) {
					if(obj[i].title == undefined) {
						obj[i].title = "";
						obj[i].source = "新浪微博";
					}
					shtml += "<tr><td><input type=\"checkbox\" name=\"checkbox\"  id=\"" + obj[i].id + "\" value=\"" + obj[i].form + "\" http=" + obj[i].http + "></td>"
					shtml += "<td><a target=_blank href=\"toContentpage.do?id=" + obj[i].id + "&form=" + obj[i].form + "\" style=\"text-indent:0em;\">" + obj[i].title.substring(0, 15) + "<a></td>"
					shtml += "<td>" + obj[i].source + "</td>"
					shtml += "<td>" + obj[i].time + "</td></tr>"

				}
				$("#list").empty();
				$("#list").html(shtml);
			}
		})
		return form;
	}
	get();
	window.get = get;

})

function page() {
	var form=get();
	/*分页S*/
	$.ajax({
		url: "showEarliestFiveDataOrderByForm.do",
		data: {
			id: value,
			form: form,
			size: 10
		},
		type: "post",
		success: function(data) {
			console.log(data);
			console.info(data.totalPage);
			$("#zhuantipagerArea").createPage({
				current: 1,
				pageCount: data.totalPage,
				backFn: function(p) {
					console.info(data.totalPage)
					console.log(p);
					$.ajax({
						url: "showEarliestFiveDataOrderByForm.do",
						data: {
							id: value,
							form: form,
							pageNo: p,
							size: 10
						},
						type: "post",
						success: function(data) {
							var obj = data.results;
							console.info(obj);
							var shtml = "";
							for(var i = 0; i < obj.length; i++) {
								if(obj[i].title == undefined) {
									obj[i].title = "";
									obj[i].source = "新浪微博";
								}
								shtml += "<tr><td><input type=\"checkbox\" name=\"checkbox\"  id=\"" + obj[i].id + "\" value=\"" + obj[i].form + "\" http=" + obj[i].http + "></td>"
								shtml += "<td><a target=_blank href=\"toContentpage.do?id=" + obj[i].id + "&form=" + obj[i].form + "\" style=\"text-indent:0em;\">" + obj[i].title.substring(0, 15) + "<a></td>"
								shtml += "<td>" + obj[i].source + "</td>"
								shtml += "<td>" + obj[i].time + "</td></tr>"
							}
							$("#list").empty();
							$("#list").html(shtml);
						}

					});
				}
			});
		}

	});
	/*  分页E*/

}
page();
